package cn.iocoder.yudao.module.hs.controller.admin.receiveorder.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 收货单 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ReceiveOrderRespVO {

    @Schema(description = "收货单主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "30316")
    @ExcelProperty("收货单主键")
    private Long id;

    @Schema(description = "收货单号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("收货单号")
    private String no;

    @Schema(description = "出库单id", requiredMode = Schema.RequiredMode.REQUIRED, example = "11784")
    @ExcelProperty("出库单id")
    private Long shipOrderId;

    @Schema(description = "发货单号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("发货单号")
    private String shipOrderCode;

    @Schema(description = "收货人")
    @ExcelProperty("收货人")
    private String consignee;

    @Schema(description = "收货时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("收货时间")
    private LocalDateTime receiveTime;

    @Schema(description = "状态，1-收货中 2-已收货", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "状态，1-收货中 2-已收货", converter = DictConvert.class)
    @DictFormat("ship_order_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "出库单ID")
    private Long warehouseId;
}